home *** CD-ROM | disk | FTP | other *** search
- package sun.print;
-
- import java.awt.print.Pageable;
- import java.io.IOException;
- import java.io.InputStream;
- import java.io.Reader;
- import java.io.UnsupportedEncodingException;
- import javax.print.Doc;
- import javax.print.DocFlavor;
- import javax.print.DocFlavor.SERVICE_FORMATTED;
- import javax.print.attribute.DocAttributeSet;
- import javax.print.attribute.HashDocAttributeSet;
-
- public class PageableDoc implements Doc {
- private Pageable pageable;
-
- public PageableDoc(Pageable var1) {
- this.pageable = var1;
- }
-
- public DocFlavor getDocFlavor() {
- return SERVICE_FORMATTED.PAGEABLE;
- }
-
- public DocAttributeSet getAttributes() {
- return new HashDocAttributeSet();
- }
-
- public Object getPrintData() throws IOException {
- return this.pageable;
- }
-
- public Reader getReaderForText() throws UnsupportedEncodingException, IOException {
- return null;
- }
-
- public InputStream getStreamForBytes() throws IOException {
- return null;
- }
- }
-